Change Background (No Masking Needed)
You can change the background of an image with just a prompt.
API Endpoints
- Run
- Status
https://api.imagepipeline.io/bgchanger/v1
API-Key
{
"prompt": "highly detailed, photo of a woman in a party dress, brown hair, green forests and a waterfall in the background",
"negative_prompt": "blurred edges, imperfect, bad, blurry",
"init_image":"https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?fileId=4_z5d60d83d2978061b99010713_f1029906c1f393cc5_d20241111_m113004_c005_v0501017_t0046_u01731324604242",
"seed":87965
}
https://api.imagepipeline.io/bgchanger/v1/status/{{task_id}}
API-Key
Control the Style of Background
You can add a reference image to copy the style of that image when generating the background by using the style_image
parameter
- Run
- Status
https://api.imagepipeline.io/bgchanger/v1
API-Key
{
"prompt": "highly detailed, photo of a woman in a party dress, brown hair, green forests and a waterfall in the background",
"negative_prompt": "blurred edges, imperfect, bad, blurry",
"init_image":"https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?fileId=4_z5d60d83d2978061b99010713_f1029906c1f393cc5_d20241111_m113004_c005_v0501017_t0046_u01731324604242",
"seed":-1,
"style_image": "https://f005.backblazeb2.com/file/imagepipeline/user_2ZYdYTFr4LKcIzUlgtSS3tVe3qv/72f97c89-15f1-4302-9235-12003e0bd7aa0.png"
}
https://api.imagepipeline.io/bgchanger/v1/status/{{task_id}}
API-Key
JSON Parameters
Parameter | Description | Type | Default Value |
---|---|---|---|
style_image | Public URL for the style you want to copy | string | Required |
init_image | Public URL for the initial image to be worked upon | string | Required |
prompt | Text prompt to guide the image generation | string | Required |
samples | Number of images to generate, must be between 1 and 4 | integer | 1 |
negative_prompt | Text prompt to exclude specific elements from the generated image | string | Optional |
seed | Seed value for reproducible image generation | integer | -1 |
server_id | Optional server ID to use an enterprise subscription; can be used for load-balancing or specific server routing | string | Optional |
webhook | URL where the generated image will be sent after processing | string | Optional |
direct_link | Fetches a user-friendly URL in PNG format | boolean | false |
batch_id | Identifier for grouping multiple images generated in a batch | string | Optional |
file_prefix | Prefix to add to the filename of the generated image | string | Optional |
queued_image_urls | Returns the links of images before they’re processed; the link will have the image once the task completes | boolean | false |